package cn.colat.micse.user.feign;

import cn.colat.micse.common.pojo.vo.ResBody;
import com.alibaba.fastjson2.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 订单 feign 接口
 */
@Component
@FeignClient("order-service")
public interface OrderOpenFeignService {
    /**
     * 分页查询当前登录用户的所有订单信息
     */
    @PostMapping("/order-list")
    ResBody<JSONObject> orderList();
}
